echo "正在处理服务端"
mkdir docker-root
mv bedrock-server* ./docker-root/
cd docker-root
mv *.zip ../
mv bedrock-server* bedrock-server
cd bedrock-server
tar -czvf behavior_packs.tar.gz ./behavior_packs
rm -rf ./behavior_packs/*
tar -czvf resource_packs.tar.gz ./resource_packs
rm -rf ./resource_packs/*
mkdir worlds
cd ../
echo "下载启动脚本"
wget https://gitee.com/daze456/C0-McSID/raw/master/mc-run.sh
cd ../
echo "下载dockerfile"
wget https://gitee.com/daze456/C0-McSID/raw/master/dockerfile
echo "最终构建"
docker build -t daze456/mcbeserver:unofb .
docker save daze456/mcbeserver:unofb>mcbeserver.tar